package com.hsj.busmanager.mapper;

import com.hsj.busmanager.api.Bus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Bus record);

    int insertSelective(Bus record);

    Bus selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Bus record);

    int updateByPrimaryKey(Bus record);

    List<Bus> getBusListPage(Integer start, int limit, @Param("bus") Bus bus);

    int getBusCount(@Param("bus")Bus bus);

    void updateDistanceByBusId(Integer busId, double distance);

    List<Bus> getOnwerBusList();
}